package cn.edu.scau.cmi.zhuyuxian.interProgramming.experiment7.pojo;

public class Student {
	public Student() {
	}
	public Student(String id, String name) {
		this.id = id;
		this.name = name;
	}
	public Student(String id, String name, Teacher teacher) {
		this.id = id;
		this.name = name;
		this.teacher = teacher;
	}

	private String id;
	private Teacher teacher;
	private String name;

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Teacher getTeacher() {
		return this.teacher;
	}

	public void setTeacher(Teacher teacher) {
		this.teacher = teacher;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Override
	public String toString() {
		return this.name;
	}
}
